package com.atguigu.gulimall.member.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.member.feign.hystrix.CouponFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 这是一个声明式的远程调用
 * @author Admin
 */
@FeignClient(name = "gulimall-coupon",path = "/coupon",fallback = CouponFeignServiceFallback.class)
public interface CouponFeignService {

    /**
     *
     * @return
     */
    @RequestMapping("/coupon/member/list")
    R membercoupons();

}
